package com.eight.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Time;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("placecom")
public class Placecom {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "评论的主键")
    private Integer pcid;
    @ApiModelProperty(value = "评分")
    private Integer placegrade;
    @ApiModelProperty(value = "评论信息")
    private String pcinfo;
    @ApiModelProperty(value = "提问")
    private String placequestion;
    @ApiModelProperty(value = "回答")
    private String placeanswer;
    @ApiModelProperty(value = "游玩时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:s")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:s")
    private Date pctime;
    @ApiModelProperty(value = "建议浏览时长")
    @DateTimeFormat(pattern = "HH:mm:s")
    @JsonFormat(pattern = "HH:mm:s")
    private Date placeplaytime;
    @ApiModelProperty(value = "景区的主键pid")
    private Integer pid;
    @ApiModelProperty(value = "用户id")
    private int uid;
    @TableField(exist=false)
    private List<Placecompic> placecompic;
}
